package com.qj.platform.pay.core.domain;

import com.qj.base.commons.utils.DateUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created by zhijie on 2016/12/15.
 */
/*代理商*/
public class Agent {
    private String id;
    private String tel;
    private String nickName;
    private String email;
    @DateTimeFormat(pattern = DateUtils.DEFAULT_TIME_PATTERN)
    private Date createTime;
    @DateTimeFormat(pattern = DateUtils.DEFAULT_TIME_PATTERN)
    private Date modifyTime;
    private String level;
    private String remark;
    /*上级代理商id*/
    private String superAgentId;
    /**
     * 例如agentT0TradeRate=0.003
     * merchantT0TradeRate=0.006
     * merchantCommissionRate=0.8
     * 代理商上名下的商户交易1000元，
     * 那么该代理商的佣金为1000*(0.006-0.003)*0.8
     */
    /*该代理商名下的商户的手续费扣率，与agentT0TradeRate相减得到改代理商的佣金*/
    private Double merchantT0TradeRate;
    /*该代理商的手续费扣率*/
    private Double agentT0TradeRate;
    /*与代理商名下商户手续费差额的佣金比例*/
    private Double merchantCommissionRate;
    /*与下级代理商手续费差额的佣金比例，暂无*/
    private Double agentCommissionRate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getSuperAgentId() {
        return superAgentId;
    }

    public void setSuperAgentId(String superAgentId) {
        this.superAgentId = superAgentId;
    }

    public Double getMerchantT0TradeRate() {
        return merchantT0TradeRate;
    }

    public void setMerchantT0TradeRate(Double merchantT0TradeRate) {
        this.merchantT0TradeRate = merchantT0TradeRate;
    }

    public Double getAgentT0TradeRate() {
        return agentT0TradeRate;
    }

    public void setAgentT0TradeRate(Double agentT0TradeRate) {
        this.agentT0TradeRate = agentT0TradeRate;
    }

    public Double getMerchantCommissionRate() {
        return merchantCommissionRate;
    }

    public void setMerchantCommissionRate(Double merchantCommissionRate) {
        this.merchantCommissionRate = merchantCommissionRate;
    }

    public Double getAgentCommissionRate() {
        return agentCommissionRate;
    }

    public void setAgentCommissionRate(Double agentCommissionRate) {
        this.agentCommissionRate = agentCommissionRate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
